package com.hotelsystem.service;

import com.hotelsystem.pojo.OrderDetail;

import java.util.List;

public interface OrderDetailService {


    /**
     * 根据订单编号查询订单明细
     * @param ordersId
     * @return
     * @throws Exception
     */
    List<OrderDetail> list(String ordersId) throws Exception;

    /**
     * 添加订单明细
     * 修改订单的总金额
     * @param orderDetail
     * @return
     * @throws Exception
     */
    Integer insert(OrderDetail orderDetail) throws Exception;
}
